package com.shixj.easy.spider.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import pers.vankid.common.utils.weixin.WeixinHelper;

@Component
public class WeixinConfig {
    @Value("${app.id}")
    private String appId;
    @Value("${app.secret}")
    private String appSecret;

    @Bean("weixinHelper")
    WeixinHelper getWeixinHelperMap() {
        return new WeixinHelper(appId, appSecret);
    }
}
